﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.PersonDomain;
using ShivamEMR.Model.Domain.CompanyDomain;
using System.ComponentModel.DataAnnotations;
using ShivamEMR.Model.Domain.PatientDomain;

namespace ShivamEMR.Model.Domain.CRMDomain
{
   public class Assignment
    {
        #region Properties
        public Guid ID { get; set; }
          [DataType(DataType.Date)]
        public DateTime DateAndTime { get; set; }
        public string Occasion { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public Guid EmployeeID { get; set; }
        public Guid PersonID { get; set; }
        public Guid VenueID { get; set; }
        public int AssignmentGroupID { get; set; }
        public int AssignmentStatusID { get; set; }
        public Nullable<Guid> AdmissionID { get; set; }
        #endregion

        #region NavigationalProperties
       [ForeignKey("EmployeeID")]
        public virtual Employee Employee { get; set; }
       [ForeignKey("PersonID")]
       public virtual Person Person { get; set; }
       [ForeignKey("VenueID")]
        public virtual Venue Venue { get; set; }
       [ForeignKey("AssignmentGroupID")]
        public virtual AssignmentGroup Group { get; set; }
       [ForeignKey("AssignmentStatusID")]
        public virtual AssignmentStatus Status { get; set; }
       [ForeignKey("AdmissionID")]
       public virtual Admission Admission{ get; set; }
        #endregion

    }
}
